home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_a / abc420.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-09-20  |  5KB  |  228 lines

  1. ECHO OFF
  2. CLS
  3. ECHO.
  4. ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  5. ECHO.
  6. ECHO            A B C   F U N   K E Y S   I N S T A L L A T I O N
  7. ECHO.
  8. ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  9. ECHO.
  10. IF "%1" == "" GOTO INSTRUCT
  11. IF "%2" == "" GOTO INSTRUCT
  12. IF "%3" == "FLOPPY" GOTO FLOPINST
  13. IF "%3" == "floppy" GOTO FLOPINST
  14.  
  15. REM  * * * * * * * * * * * * * * * * * * * * HARD DISK INSTALLATION
  16. %1
  17. ECHO.
  18. ECHO.
  19. ECHO Installing ABC from %1 to %2
  20. ECHO.
  21. ASK YN Is this correct and do you want to continue? (Y/N)??
  22. IF ERRORLEVEL 2 GOTO EXIT
  23. ECHO.
  24. ECHO.
  25. ECHO Making %2 subdirectory, if it doesn't already exist...
  26. MD %2
  27. ECHO.
  28. ECHO.
  29. ECHO.
  30. ECHO.
  31. ECHO Copying ABC.EXE...
  32. COPY %1ABC.EXE %2
  33. ECHO.
  34. ECHO Copying ABC.CFG configuration file...
  35. COPY %1ABC.CFG %2
  36. ECHO.
  37. ECHO Copying *.SCR files...
  38. COPY %1*.SCR %2
  39. ECHO.
  40. ECHO Copying MUSIC.SNG file...
  41. COPY %1MUSIC.SNG %2
  42. ECHO.
  43. IF EXIST %1A.SPF GOTO HSHARE
  44. IF EXIST %1ABC_PICS.EXE GOTO HREGIST
  45. ECHO.
  46. ECHO Sorry.  Picture files have not been found.  Aborting installation.
  47. ECHO.
  48. GOTO EXIT
  49.  
  50. :HSHARE
  51. ECHO Copying REGISTER.DOC file...
  52. COPY %1REGISTER.DOC %2
  53. ECHO.
  54. ECHO Copying ABC Picture files (*.SPF) ...
  55. COPY %1*.SPF %2
  56. ECHO.
  57. ECHO Copying ABC Documentation file...
  58. COPY %1ABC.DOC %2
  59. GOTO SUCCESS
  60.  
  61. :HREGIST
  62. ECHO.
  63. ECHO Setting up to expand the ABC_PICS file...
  64. %2\
  65. CD %2
  66. ECHO.
  67. ECHO Expanding the ABC Picture files (*.SPF) ...
  68. %1ABC_PICS
  69. ECHO.
  70. %1
  71. ECHO.
  72. ECHO Copying the ABC Documentation file...
  73. COPY %1ABC.DOC %2
  74. GOTO SUCCESS
  75.  
  76. REM   * * * * * * * * * * * * * * * * * * * FLOPPY DISK INSTALLATION
  77. :FLOPINST
  78. %1
  79. ECHO.
  80. IF NOT EXIST %1A.SPF GOTO FCONT
  81. ECHO.
  82. ECHO This ABC diskette has been pre-installed and can be used as it is.
  83. ECHO Please use DISKCOPY to make a backup copy of the disk before 
  84. ECHO running the program.
  85. ECHO.
  86. ECHO If you wish, you can continue the installation process to make a
  87. ECHO backup of the ABC program onto a blank, formatted diskette.
  88. ECHO.
  89. ASK YN Do you wish to continue with the installation? (Y/N)??
  90. IF ERRORLEVEL 2 GOTO EXIT
  91.  
  92. :FCONT
  93. ECHO.
  94. ECHO.
  95. ECHO Installing ABC from %1 to %2 FLOPPY DISK!
  96. ECHO.
  97. ECHO If you only have one disk drive, this will require many diskette swaps.
  98. ASK YN Is this correct and do you want to continue? (Y/N)??
  99. IF ERRORLEVEL 2 GOTO EXIT
  100.  
  101. ECHO.
  102. ECHO.
  103. ECHO Copying ABC.EXE...
  104. COPY %1ABC.EXE %2
  105. ECHO.
  106. ECHO Copying ABC.CFG configuration file...
  107. COPY %1ABC.CFG %2
  108. ECHO.
  109. ECHO Copying *.SCR files...
  110. COPY %1*.SCR %2
  111. ECHO.
  112. ECHO Copying MUSIC.SNG file...
  113. COPY %1MUSIC.SNG %2
  114. ECHO.
  115. IF EXIST %1A.SPF GOTO FSHARE
  116. IF EXIST %1ABC_PICS.EXE GOTO FREGIST
  117. ECHO.
  118. ECHO Sorry.  Picture files have not been found.  Aborting installation.
  119. ECHO.
  120. GOTO EXIT
  121.  
  122. :FSHARE
  123. ECHO Copying REGISTER.DOC file...
  124. COPY %1REGISTER.DOC %2
  125. ECHO.
  126. ECHO Copying ABC Picture files (*.SPF) ...
  127. COPY %1*.SPF %2
  128. ECHO.
  129. ECHO Copying ABC Documentation file...
  130. COPY %1ABC.DOC %2
  131. GOTO SUCCESS
  132.  
  133. :FREGIST
  134. ECHO.
  135. ECHO Setting up to expand the ABC_PICS file...
  136. %2\
  137. CD %2
  138. ECHO.
  139. ECHO Expanding the ABC Picture files (*.SPF) ...
  140. %1ABC_PICS
  141. ECHO.
  142. %1
  143. ECHO.
  144. GOTO SUCCESS  
  145.  
  146. :SUCCESS
  147. CLS
  148. ECHO.
  149. ECHO.
  150. ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  151. ECHO.
  152. ECHO        Installation of ABC Fun Keys to %2 was successful!
  153. ECHO.
  154. ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  155. :SUCCESS2
  156. ECHO.
  157. ECHO.
  158. ECHO At this time, you can:
  159. ECHO                            BROWSE the ABC Documentation,
  160. ECHO                            PRINT the ABC Documentation,  or
  161. ECHO                            QUIT and return to DOS.
  162. ECHO.
  163. ASK QPB Do you want to Browse, Print, or Quit? (B/P/Q)??
  164. IF ERRORLEVEL 3 GOTO BROWSEIT
  165. IF ERRORLEVEL 2 GOTO PRINTIT
  166. CLS
  167. ECHO.
  168. ECHO.
  169. ECHO For future reference:
  170. ECHO     You can print the ABC documentation by typing:
  171. ECHO             COPY %1ABC.DOC PRN
  172. ECHO.
  173. ECHO     You can browse the ABC documentation by typing:    
  174. ECHO         %1BROWSE %1ABC.DOC
  175. ECHO.
  176. ECHO.
  177. ECHO At this time, you can change to %2 and
  178. ECHO start the ABC program by typing:        ABC [Enter]
  179. ECHO.
  180. ECHO.
  181. GOTO EXIT
  182.  
  183. :BROWSEIT
  184. ECHO.
  185. ECHO.
  186. %1BROWSE %1ABC.DOC
  187. CLS
  188. GOTO SUCCESS2
  189.  
  190. :PRINTIT
  191. ECHO.
  192. ECHO.
  193. ECHO The ABC Documentation consists of 25 pages.
  194. ECHO.
  195. ASK YN Is your Printer Ready on LPT1 and do you want to continue? (Y/N)??
  196. IF ERRORLEVEL 2 GOTO PRINTIT2
  197. ECHO.
  198. ECHO.
  199. COPY %1ABC.DOC LPT1
  200. :PRINTIT2
  201. CLS
  202. GOTO SUCCESS2
  203.  
  204. :INSTRUCT
  205. CLS
  206. ECHO.
  207. ECHO Installation Syntax Error.  INSTALL must be started with
  208. ECHO the following syntax:
  209. ECHO.
  210. ECHO       d:INSTALL [source_drive] [destination_drive\path] [FLOPPY]
  211. ECHO.
  212. ECHO          Where:   d: is the drive that contains the install disk.
  213. ECHO                   FLOPPY is a keyword to allow installation to a floppy.
  214. ECHO.
  215. ECHO.
  216. ECHO For example,
  217. ECHO      A:INSTALL A: B: FLOPPY
  218. ECHO         installs ABC from the A floppy to the B floppy.
  219. ECHO.
  220. ECHO      A:INSTALL A: C:\GAMES\ABC
  221. ECHO         installs ABC from the A floppy to the C:\GAMES\ABC directory.
  222. ECHO.
  223. ECHO.
  224.  
  225. :EXIT
  226. ECHO.
  227. ECHO.
  228.